package com.dd.cloud.user.entity.phar;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author xt
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "药房其他加工类型表")
public class PharFryingTwoRule {

    /**
     * 代煎费id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 是否勾选
     */
    @Column(comment = "是否勾选 0 未勾选 1.勾选", length = 4)
    private Integer isChecked;

    /**
     * 加工费
     */
    @Column(comment = "加工费")
    private Integer processingFee;

    /**
     * 加工公斤数
     */
    @Column(comment = "加工公斤数", defaultValue = "1")
    private Integer processKg;

    /**
     * 续重 是否勾选 0.未勾选 1.勾选
     */
    @Column(comment = "续重 0.未勾选 1.勾选", length = 4)
    private Integer reWeightIsChecked;

    /**
     * 续重
     */
    @Column(comment = "续重")
    private Integer reWeight;

    /**
     * 续重费用
     */
    @Column(comment = "续重费用")
    private Integer weightFee;

    /**
     * 剂型最小收率范围
     */
    @Column(comment = "剂型最小收率范围")
    private Integer minRate;


    /**
     * 剂型最大收率范围
     */
    @Column(comment = "剂型最大收率范围")
    private Integer maxRate;

    /**
     * 按实际重量计算是否勾选 0.未勾选 1.勾选
     */
    @Column(comment = "按实际重量计算是否勾选 0.未勾选 1.勾选", length = 4)
    private Integer realWeightIsChecked;

    /**
     * 免加工费是否勾选
     */
    @Column(comment = "免加工费是否勾选 0.未勾选 1.勾选", length = 4)
    private Integer freeIsChecked;


    /**
     * 药品费
     */
    @Column(comment = "药品费")
    private Integer drugFee;

    /**
     * 起订量是否勾选 0.未勾选 1.勾选
     */
    @Column(comment = "起订量是否勾选 0.未勾选 1.勾选", length = 4)
    private Integer minWeightIsChecked;

    /**
     * 起订量
     */
    @Column(comment = "起订量")
    private Integer minWeight;


    /**
     * 药房id
     */
    @Column(comment = "药房id")
    private Integer pharId;

    /**
     * 类型
     */
    @Column(comment = "类型 3.水丸 4.浓缩丸 5.水蜜丸 6.蜜丸 7.膏方 8.颗粒剂 " +
            "9.合煎制粉(200目) 10.粉制(40目及以下) 11.粉剂(60目) 12.粉剂(80目) 13.粉剂(100目) " +
            "14.粉剂(200目) 15.粉剂(300目及以上) 16.粉剂(150目)")
    private Integer type;


    /**
     * 状态 1.正常 -1.删除
     */
    @Column(comment = "1.正常 -1.删除", defaultValue = "1")
    private Integer status;


    /**
     * 更新时间
     */
    @Column(comment = "更新时间")
    private LocalDateTime updateDate;

}
